import React from 'react';

const Child = (props, ref) => {
  
  console.log(props, ref);
  return (
    <div ref={ ref }>
      Child
      <br/>
      { props.text }
    </div>
  );
};

export default React.forwardRef(Child);
